﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using InternshipManagement.Models;
using InternshipManagement.Helpers;

namespace InternshipManagement.Controllers
{
    public class DashboardController : Controller
    {
        DashboardRepository dashboardRepository = new DashboardRepository();
        //
        // GET: /Dashboard/Menu
        [CustomAuthorize]
        public ActionResult Menu()
        {
            return View(dashboardRepository.FindAllByUserTypeID((int)HttpContext.Session["UserTypeID"]));
            //return View(dashboardRepository.FindAllByUserTypeID(1)); //TODO : Test amacli
        }

    }
}
